/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufrn.dca.scontrol.control;

import br.ufrn.dca.controle.*;

/**
 *
 * @author marco
 */
public class Conexao {

    QuanserClient clt;

    public Conexao(){
    }

    public Conexao(String ipServer , int porta){
        try{
            //clt = new QuanserClient("10.13.99.69", 20081);
            clt = new QuanserClient("127.0.0.1", 20081);
        }catch(QuanserClientException ex){
            System.out.println("Erro na conexão com o servidor");
        }
    }

    public void connect(String ipServer, int porta){
        try{
            //clt = new QuanserClient("10.13.99.69", 20081);
            clt = new QuanserClient("127.0.0.1", 20081);
        }catch(QuanserClientException ex){
            System.out.println("Erro na conexão com o servidor");
        }
    }

    public void disconect(){
        //clt.
    }

    public QuanserClient getClt() {
        return clt;
    }

    public void setClt(QuanserClient clt) {
        this.clt = clt;
    }
    
}
